package cn.wolfcode.wolfcodemall.service.impl;

import cn.wolfcode.wolfcodemall.domain.Address;
import cn.wolfcode.wolfcodemall.mapper.AddressMapper;
import cn.wolfcode.wolfcodemall.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AddressServiceImpl implements AddressService {
    @Autowired
    private AddressMapper addressMapper;
    public List<Address> findRoot() {
        return addressMapper.selectRoot();
    }

    public List<Address> findList(String addressId) {
        return addressMapper.selectList(addressId);
    }

    public Address findById(String addressId) {
        return addressMapper.selectByPrimaryKey(addressId);
    }
}
